Skip to content

Fix ASN ROI end handling and improve multi-file error msg#60

Open
asladen wants to merge 1 commit intoxdas-dev:mainfrom
asladen:fix/asn-reader-roi-end
Open

Fix ASN ROI end handling and improve multi-file error msg#60
asladen wants to merge 1 commit intoxdas-dev:mainfrom
asladen:fix/asn-reader-roi-end

Conversation

@asladen
Copy link
Copy Markdown

@asladen asladen commented Mar 21, 2026

Summary

This fixes ASN file reader : demodSpec.roiEnd needs to be a strict upper bound to avoid rounding error.

Changes

  • fix ASN ROI end index selection in xdas.io.asn.read
  • add a regression test for exclusive ROI end handling
  • improve open_mfdataarray so it raises the real file-open failure when all files fail, instead of crashing later on objs[0]

Validation

Validated against local ASN datasets including:

  • single ROI ASN files that previously failed with an out-of-bounds index
  • multi-segment ASN files

The patched reader successfully opens both single-file and multi-file datasets in these cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant